//
//  Proxy.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/11.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "Proxy.h"
#import "ProxySource.h"

@interface Proxy()
@property(nonatomic,strong) ProxySource * source;

@end

@implementation Proxy

@synthesize source;

- (instancetype)init
{
    self = [super init];
    if (self) {
        if (source == nil) {
            source = [ProxySource new];
        }
    }
    return self;
}

-(void)method
{
    NSLog(@"before proxy");
    [source method];
    NSLog(@"after proxy");
}

@end
